package com.itheima.stock.mapper;

import com.itheima.stock.entity.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
* @author zby
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @created 2024-06-17 20:58:15
* 对应实体类{@link StockMarketIndexInfo}
*/
@Mapper
public interface StockMarketIndexInfoMapper {
    /**
     * 根据大盘编码和日期查询大盘指数信息
     * @param ids
     * @param last
     * @return
     */

    List<StockMarketIndexInfo> selectByIdsAndDateTime(@Param("ids") List<String> ids,@Param("last") LocalDateTime last);

    List<StockMarketIndexInfo> stockTradeVolCount(@Param("ids") List<String> inner, @Param("begin") LocalDateTime preTOpenTime,@Param("end") LocalDateTime tCloseTime);

    int insertBatch(ArrayList<StockMarketIndexInfo> list);
}




